package cn.vonce.sqlbean.example.enums;

import cn.vonce.sql.define.SqlEnum;

/**
 * 用户状态
 *
 * @author Jovi
 * @email imjovi@qq.com
 * @date 2023/11/6 17:19
 */
public enum UserStatus implements SqlEnum<Integer> {
    DISABLE(0, "禁用"), NORMAL(1, "正常");

    UserStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code;
    private String desc;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

}
